package cn.xiaoming.car.server.content.dao.persist.repository;

import cn.xiaoming.car.pojo.car.pojo.entity.Car;
import cn.xiaoming.car.pojo.car.pojo.vo.CarListItemVO;
import cn.xiaoming.car.pojo.car.pojo.vo.CarVO;
import cn.xiaoming.car.server.pojo.vo.PageData;
import org.springframework.stereotype.Repository;


public interface ICarRepository {
    CarListItemVO getCarById(Long id);

    CarVO getDetailById(Long id);

    PageData<CarListItemVO> list(Integer pageNum, Integer pageSize);

    int insert(Car car);

    int countByNum(String num);

    int deleteById(Long id);

    int countByNumAndId(Long id, String plateNum);

    int updateById(Car car);


    int deleteDetailById(Long id);
}
